/**
 * 
 */
package com.kexinde.wjifen.model;

import javax.persistence.Entity;

/**
 * 用户实体
 * 
 * @author vincent
 * 
 */
@Entity
public class User {
	/**
	 * 标识（主键）
	 */
	private Long id = 0L;
	
	/**
	 * 用户名
	 */
	private String name = "";
	
	/**
	 * 密码
	 */
	private String password = "";
	
	/**
	 * 手机号
	 */
	private String telNum = "";
	
	/**
	 * 微号
	 */
	private String weiNum = "";
	
	/**
	 * 邮箱
	 */
	private String email = "";
	
	/**
	 * 权限，-1冻结会员，0普通，1诚信（vip1），2诚信（vip2）如此类推
	 */
	private int purview = 0;
	
	/**
	 * 头像
	 */
	private String imagePath = null;
	
	/**
	 * 总积分
	 */
	private Long totalPoint = 0L;
	

	/**
	 * 构造函数
	 * 动态实例化对象
	 * @param id
	 * @param name
	 * @param password
	 * @param telNum
	 * @param selfWord
	 * @param email
	 * @param purview
	 * @param imagePath
	 * @param totalPoint
	 */
	public User(Long id, String name, String password, String telNum,
			String weiNum, String email, Integer purview, String imagePath,
			Long totalPoint) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.telNum = telNum;
		this.weiNum = weiNum;
		this.email = email;
		this.purview = purview;
		this.imagePath = imagePath;
		this.totalPoint = totalPoint;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelNum() {
		return telNum;
	}

	public void setTelNum(String telNum) {
		this.telNum = telNum;
	}

	public String getWeiNum() {
		return weiNum;
	}

	public void setWeiNum(String weiNum) {
		this.weiNum = weiNum;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getPurview() {
		return purview;
	}

	public void setPurview(int purview) {
		this.purview = purview;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public long getTotalPoint() {
		return totalPoint;
	}

	public void setTotalPoint(long totalPoint) {
		this.totalPoint = totalPoint;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", password=" + password
				+ ", telNum=" + telNum + ", weiNum=" + weiNum + ", email="
				+ email + ", purview=" + purview + ", imagePath=" + imagePath
				+ ", totalPoint=" + totalPoint + "]";
	}

}
